package com.wn.class30.tools;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Component;

/** 
* @author 周豪 E-mail: 
* @version 创建时间：2020年3月2日 下午5:27:49 
* 类说明 
*/
@Component
@ApiModel(value = "分页工具",description = "分页工具1")
public class Page {

	@ApiModelProperty(value = "当前页")
private long  currentPage;
	@ApiModelProperty(value="一页多少行")
private Integer pageSize;
	@ApiModelProperty(value = "总共多少页")
private Integer totalPage;
	@ApiModelProperty(value = "总共多少行")
private long totalSize;

	public long getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(long currentPage) {
		this.currentPage = currentPage;
	}

	public Integer getPageSize() {
	return pageSize;
}
public void setPageSize(Integer pageSize) {
	this.pageSize = pageSize;
}
public Integer getTotalPage() {
	return totalPage;
}
public void setTotalPage(Integer totalPage) {
	this.totalPage = totalPage;
}

	public long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(long totalSize) {
		this.totalSize = totalSize;
	}

	@Override
public String toString() {
	return "Page [currentPage=" + currentPage + ", pageSize=" + pageSize + ", totalPage=" + totalPage + ", totalSize="
			+ totalSize + "]";
}
public Page(Integer currentPage, Integer pageSize, Integer totalPage, Integer totalSize) {
	super();
	this.currentPage = currentPage;
	this.pageSize = pageSize;
	this.totalPage = totalPage;
	this.totalSize = totalSize;
}
public Page() {
	super();
}

}
